﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using XCommunity.Documents;

/// <summary>
///DocumentContentPresenter 的摘要说明
/// </summary>

[ParseChildren( false )]
[PersistChildren( false )]
public class DocumentContentPresenter : Control
{

  private Document _document;
  private IHtmlDocumentProvider _provider;

  
  public DocumentContentPresenter( Document document, IHtmlDocumentProvider provider )
  {

    _document = document;
    _provider = provider;

  }


  protected override void Render( HtmlTextWriter writer )
  {
    _provider.RenderDocument( _document, writer );
  }

}
